package top.hudk.tank.config;

/**
 * 作用：全局配置常量值
 * 用户可以配置的常量，在这里管理
 * @author hudk
 * @date 2020/9/10 14:55
 */
public class GameConfig {

    /**
     * 主窗口宽度
     */
    public static final int GAME_WIDTH = Integer.parseInt((String) PropertyLoader.get("gameWidth"));
    /**
     * 主窗口高度
     */
    public static final int GAME_HEIGHT = Integer.parseInt((String) PropertyLoader.get("gameHeight"));
    /**
     * 界面刷新帧数
     */
    public static final int FRAME_RATE = Integer.parseInt((String)PropertyLoader.get("frameRate"));

    /**
     * 坦克移动速度
     */
    public static final int GOOD_TANK_SPEED = Integer.parseInt((String) PropertyLoader.get("goodTankSpeed"));

    /**
     * 坦克移动速度
     */
    public static final int BAD_TANK_SPEED = Integer.parseInt((String) PropertyLoader.get("badTankSpeed"));
    /**
     * 子弹移动速度
     */
    public static final int GOOD_BULLET_SPEED = Integer.parseInt((String) PropertyLoader.get("goodBulletSpeed"));
    /**
     * 子弹移动速度
     */
    public static final int BAD_BULLET_SPEED = Integer.parseInt((String) PropertyLoader.get("badBulletSpeed"));
    /**
     *
     */
    public static final int BAD_BULLET_CHANGE_DIRECTION = Integer.parseInt((String) PropertyLoader.get("badBulletChangeDirection"));
    /**
     *
     */
    public static final int BAD_BULLET_CHANGE_DIRECTION_BY_SECOND = Integer.parseInt((String) PropertyLoader.get("badBulletChangeDirectionBySecond"));

    /**
     * 敌人坦克数量
     */
    public static final int TANK_NUMBER = Integer.parseInt((String) PropertyLoader.get("tankNumber"));

    /**
     * 敌人坦克火力
     */
    public static final int FIRE_POWER = Integer.parseInt((String) PropertyLoader.get("firePower"));

    /**
     * 敌人坦克改变方向的积极性
     */
    public static final int CHANGE_DIRECTION = Integer.parseInt((String) PropertyLoader.get("changeDirection"));
    /**
     * 敌人坦克改变方向的积极性
     */
    public static final int BAD_TANK_CHANGE_DIRECTION_BY_SECOND = Integer.parseInt((String) PropertyLoader.get("changeDirectionBySecond"));



    public static final int PADDING_LEFT = 10;

    public static final int PADDING_UP = 100;

    public static final int PADDING_RIGTH = 10;

    public static final int PADDING_DOWN = 10;

}
